package structure.pattern.adaptor;

import org.checkerframework.checker.units.qual.A;

/**
 * @Autor: yuanyongan
 * @Description: 基于对象的适配器实现方式
 * @Date 2023/1/9 15:31
 */
public class AdaptorObject implements INewInter{
    Adaptee adaptee;
    public AdaptorObject(Adaptee adaptee){
        this.adaptee = adaptee;
    }
    @Override
    public void f1() {
        adaptee.fa();
    }

    @Override
    public void f2() {
        adaptee.fb();
    }

    @Override
    public void fc() {
        adaptee.fc();
    }
}
